//
//  SettingDetailHelpViewModel.m
//  YIJU2.0HD
//
//  Created by URANUS on 16/5/24.
//  Copyright © 2016年 Mr.X. All rights reserved.
//

#import "SettingDetailHelpViewModel.h"
#import "SettingDetailHelpViewController.h"


@implementation SettingDetailHelpViewModel

- (void)manager:(NetworkingBaseManager *)manager callAPIDidSuccessWithParams:(NSDictionary *)responseParams{
    NSString *UrlString = responseParams[@"data"][@"url"];
    SettingDetailHelpViewController *SettingHelp = self.viewObject;
    SettingHelp.helpUrlString = UrlString;
}

- (void)loadRequest {
    self.manager = [NetworkingManagerFactory generateNormalManager];
    RequestGenerator *generator = [RequestGenerator sharedInstance];
    self.manager.apiName = [generator generateCommonApiWithName:@"app/iPad/userGuide"];
    self.manager.params = self.postObject;
    self.manager.requestType = HTTP_GET;
    self.manager.successDelegate = self;
    self.manager.validator = self;
    [self.manager loadRequest];
}

@end
